#!/bin/bash

if [ $# -lt 1 ]; then
    exit 1;
fi

sid=$1      #游戏服务器ID
merged=$2   #合服标志,未传该字段则会去数据库中查找

if [ -z $merged ]; then
    merged=`./mysql/query_valid_server_field.sh $sid merged`
fi

if [ -z $merged ]; then
    exit 1
fi

./config/get.sh game.db_name $sid $merged
